import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPublicMiniPlayer } from "./SPublicMiniPlayer";
type int = number;
//class SArenaCrossBattleInfo
    
    export  class SArenaCrossBattleInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SArenaCrossBattleInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.miniPlayerOne.__write(arg1);
            arg1.writeInt(this.beFocusNumOne);
            arg1.writeInt(this.flowerNumOne);
            this.miniPlayerTwo.__write(arg1);
            arg1.writeInt(this.beFocusNumTwo);
            arg1.writeInt(this.flowerNumTwo);
            arg1.writeBool(this.hadSendFlower);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.miniPlayerOne = new SPublicMiniPlayer();
            this.miniPlayerOne.__read(arg1);
            this.beFocusNumOne = arg1.readInt();
            this.flowerNumOne = arg1.readInt();
            this.miniPlayerTwo = new SPublicMiniPlayer();
            this.miniPlayerTwo.__read(arg1);
            this.beFocusNumTwo = arg1.readInt();
            this.flowerNumTwo = arg1.readInt();
            this.hadSendFlower = arg1.readBool();
            return;
        }

        public /* const */_type: int=359;

        public /* var */miniPlayerOne: SPublicMiniPlayer;

        public /* var */beFocusNumOne: int;

        public /* var */flowerNumOne: int;

        public /* var */miniPlayerTwo: SPublicMiniPlayer;

        public /* var */beFocusNumTwo: int;

        public /* var */flowerNumTwo: int;

        public /* var */hadSendFlower: Boolean;

        public static /* var */_regist: SArenaCrossBattleInfo;
    }

            SArenaCrossBattleInfo._regist = new SArenaCrossBattleInfo(true);
        